﻿/*****************************************************************************
 * Hyldahl.Services.TaskProcessing                 Created by: MSH 2008.07.22
 * --------------------------------------------------------------------------
 * FileName: Configuration\TaskProcessingServiceSection.cs
 * --------------------------------------------------------------------------
 * Copyright 2009 Martin Sixhøj Hyldahl
 *****************************************************************************/

using System.Configuration;

namespace Hyldahl.Services.TaskProcessing.Configuration
{
    public class TaskProcessingServiceSection : System.Configuration.ConfigurationSection
    {
        /// <summary>
        /// Gets the data provider.
        /// </summary>
        /// <value>The data provider.</value>
        [System.Configuration.ConfigurationProperty("dataProvider", IsKey = false, IsRequired = true)]
        public ProviderSettings DataProvider
        {
            get
            {
                return ((ProviderSettings)(base["dataProvider"]));
            }
        }

        /// <summary>
        /// Gets or sets the task processing threads.
        /// </summary>
        /// <value>The task processing threads.</value>
        [System.Configuration.ConfigurationProperty("taskProcessingThreads", IsKey = false, IsRequired = true)]
        public TaskProcessingThreadsElement TaskProcessingThreads
        {
            get
            {
                return (TaskProcessingThreadsElement)base["taskProcessingThreads"];
            }
        }
    }
}
